home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #9 / Amiga Plus CD - 2004 - No. 09.iso / amigaplus / tools / amigaos4_only / ifxlite / imagefx3 / rexx / autofx / renameforsequence.ifx.pre < prev    next >
Text File  |  2004-08-03  |  639b  |  33 lines

  1. /*
  2.  * RenameForSequence.ifx.pre
  3.  * Written by Thomas Krehbiel
  4.  *
  5.  * Rename frames into sequential numbers.
  6.  *
  7.  * Inputs:
  8.  *    Word(Arg(1),1) = Sequence number
  9.  *    Word(Arg(1),2) = Total number of frames (N)
  10.  *
  11.  * Returns:
  12.  *    0 if successful, non-zero on failure
  13.  *
  14.  */
  15.  
  16. OPTIONS RESULTS
  17.  
  18. base     = 'Autofx_RenameSeq_'
  19.  
  20. basedir  = GETCLIP(base||'BaseDir')
  21. basefile = GETCLIP(base||'BaseFile')
  22.  
  23. RequestFile '"Sequence Basename:"' '"'basedir'"' '"'basefile'"'
  24. IF rc ~= 0 THEN EXIT rc
  25.  
  26. basename = result
  27.  
  28. CALL SETCLIP(base||'BaseDir', filereq.path)
  29. CALL SETCLIP(base||'BaseFile', filereq.file)
  30. CALL SETCLIP(base||'Base', basename)
  31.  
  32. EXIT
  33.